FROM ccr.ccs.tencentyun.com/dhcc_base/jre:8

EXPOSE 8085

USER dhcc

ENV TZ=Asia/Shanghai \
    JAVA_OPTS="-server -Xmx2048m -Xms2048m"

COPY ./hbcarbon-portal-1.0-SNAPSHOT.jar /app/

WORKDIR /app/

ENTRYPOINT ["bash", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar hbcarbon-portal-1.0-SNAPSHOT.jar"]
